import request from '@/utils/request'
const post = (url, data, opts) => {
  return request({
    url,
    method: 'post',
    data,
    opts
  })
}

const postUseBlob = (url, data, opts) => {
  return request({
    url,
    method: 'post',
    data,
    responseType: 'blob',
    opts
  })
}

const get = (url, params, opts) => {
  return request({
    url,
    method: 'get',
    params,
    opts
  })
}

export default {
  post,
  postUseBlob,
  get
}

